<pm:content xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui" xmlns:pm="http://primefaces.org/mobile">

	<h:form id="doctorPrivateDetailForm">
		<p:messages id="messages" />
		<h:outputLabel value="#{mReservationBean.description}" />
		<p:inputTextarea value="#{mReservationBean.userEvent.title}" />

		<h:outputLabel value="#{msgs.default_from}" />
		<h:panelGrid columns="2" style="width:100%">
			<p:inputText value="#{mReservationBean.inputDateFrom}" data-role="datebox" type="text" 
				data-options='{"mode": "datebox"}' >
			</p:inputText>
			<p:inputText value="#{mReservationBean.inputTimeFrom}" data-role="datebox" type="text" 
				data-options='{"mode": "timebox"}' >
			</p:inputText>
		</h:panelGrid>

		<h:outputLabel value="#{msgs.default_to}" />
		<h:panelGrid columns="2" style="width:100%">
			<p:inputText value="#{mReservationBean.inputDateTo}" data-role="datebox" type="text" 
				data-options='{"mode": "datebox"}' >
			</p:inputText>
			<p:inputText value="#{mReservationBean.inputTimeTo}" data-role="datebox" type="text" 
				data-options='{"mode": "timebox"}' >
			</p:inputText>
		</h:panelGrid>

		<h:panelGrid width="100%" columns="2">
			<p:commandLink type="button" value="#{msgs.button_delete}" 
				rendered="#{mReservationBean.userEvent.id != null and mReservationBean.userEvent.id != 0}" 
				action="pm:doctorPrivateDeleteView" />

			<p:commandLink type="button" value="#{msgs.button_submit}" update=":doctorReservationForm,messages"
				action="#{mReservationBean.submitAction}" />
		</h:panelGrid>
	</h:form>
</pm:content>